import { request } from '@/apis';
import { addPrefix } from '@/utils/helper';

const prefixUrl = '/ep-query';

const Api = {
  homeConfig: '/v2/screen/pcHomeConfig',
  f9Config: '/v2/pc/f9'
};

addPrefix(Api, prefixUrl);

/** 获取首页配置 */
export const getHomeConfig = () =>
  request.get(
    {
      url: Api.homeConfig
    }
  );

/** 获取f9配置 */
export const getF9Config = (id: string) =>
  request.get(
    {
      url: Api.f9Config,
      params: { id }
    }
  );

